<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>货物与甲板配置测试页</title>
    <style>
        body { font-family: sans-serif; padding: 20px; }
        textarea { width: 100%; height: 120px; font-family: monospace; }
        button { padding: 8px 16px; margin-top: 10px; }
        pre { background: #f4f4f4; padding: 10px; margin-top: 10px; }
        section { margin-bottom: 2em; }
    </style>
    <!-- 引入 CryptoJS（MD5） -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"></script>
    <!-- 引入修改后的脚本 -->
    <script src="signal.js" defer></script>
</head>
<body>
<h1>Smart Ship 装载演示</h1>

<!-- 隐藏的 sessionId 存储 -->
<input type="hidden" id="sessionId" />

<section>
    <h2>1. 上传货物信息</h2>
    <p>请上传货物JSON 数组数据：</p>
    <textarea id="cargoInput">


    </textarea><br/>
    <button id="cargoBtn">上传货物</button>
</section>

<section>
    <h2>2. 上传甲板信息并装载</h2>
    <p>请上传甲板JSON 数据：</p>
    <textarea id="deckInput">

    </textarea><br/>
    <button id="deckBtn">上传甲板并装载</button>
</section>

<section>
    <h2>3. 装载结果</h2>
    <pre id="result">等待结果…</pre>
</section>
</body>
</html>
